package com.gitee.wsl.markdown.html.tag

/*

import android.text.TextUtils
import io.noties.markwon.base.MarkwonConfiguration
import io.noties.markwon.base.RenderProps
import io.noties.markwon.base.core.CoreProps
import io.noties.markwon.base.html.HtmlTag
import org.commonmark.node.Link

class LinkHandler : SimpleTagHandler() {
    override fun getSpans(
        configuration: MarkwonConfiguration,
        renderProps: RenderProps,
        tag: HtmlTag
    ): Any? {
        val destination = tag.attributes()["href"]
        if (!TextUtils.isEmpty(destination)) {
            val spanFactory = configuration.spansFactory().get(
                Link::class.java
            )
            if (spanFactory != null) {
                CoreProps.LINK_DESTINATION[renderProps] = destination
                return spanFactory.getSpans(configuration, renderProps)
            }
        }
        return null
    }

    override fun supportedTags(): List<String> {
        return listOf("a")
    }
}*/
